colorswatch: Remove unneeded save/restore
authorBenjamin Otte <otte@redhat.com>
Sat, 11 Oct 2014 01:32:28 +0000 (03:32 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 12 Oct 2014 02:16:44 +0000 (04:16 +0200)
for both style context and cairo context.

gtk/gtkcolorswatch.c

index 921b8d9793b5aa901f56722c72df26ff68942d2b..a88ce466244b7249e954e4c0e359009048323d6e 100644 (file)
@@ -120,10 +120,6 @@ swatch_draw (GtkWidget *widget,
   width = gtk_widget_get_allocated_width (widget);
   height = gtk_widget_get_allocated_height (widget);
 
-  cairo_save (cr);
-
-  gtk_style_context_save (context);
-
   gtk_render_background (context, cr, 0, 0, width, height);
 
   if (swatch->priv->has_color)
@@ -221,9 +217,6 @@ swatch_draw (GtkWidget *widget,
       g_object_unref (icon_info);
     }
 
-  cairo_restore (cr);
-  gtk_style_context_restore (context);
-
   if (gtk_widget_has_visible_focus (widget))
     {
       gtk_render_focus (context, cr, 0, 0, width, height);